home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / Cursor & examples < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.9 KB  |  [TEXT/ttxt]

  1. Subject:     Cursor & examples
  2. Sent:        6/27/96 10:54 AM
  3. Received:    6/27/96 11:22 AM
  4. From:        Brian Arnold, arnold@lumina.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. Howdy ODF Interests,
  9.  
  10. When I first started with ODF R1, I used the Container PartMaker template,
  11. but have since switched to the Sketch PartMaker template (so'z I get shapes
  12. done for me).  When making the switch, I noticed Container's View class and
  13. Sketch's View class differ in how to handle the cursor.
  14.  
  15. Sketch calls inherited first, and then checks if the last active frame is
  16. its common frame, and uses a cross hair cursor if it thinks it's going to
  17. be sketching (tool).
  18.  
  19. Container checks if it's frame's window is active and sets to arrow if
  20. false, then calls inherited (this check seems unnecessary since it appears
  21. that OpenDoc sets the cursor anyway).  If inherited didn't set the cursor
  22. and there's a selection, it has a switch statement for types of cursors
  23. corresponding to handles of the [proxy] selection, and checks to use the
  24. open hand cursor if a drag operation is possible.  I added a final check
  25. where it sets the cursor to the appropriate tool (since I have tools like
  26. Draw).
  27.  
  28. I'm curious to know which one is being more thorough or redundant.  My
  29. suspicion is that Container is doing more work, and therefore I'm leaning
  30. towards keeping that, but I figure I should ask for an opinion first.
  31.  
  32. Also, a note about the Container part template: it names the default part
  33. file "Part.h/cpp", which hides the OpenDoc "Part.h" file (handily also in
  34. the search path, but through the system path, so it may not be a problem
  35. unless you treat system paths like user paths).
  36.  
  37. - Brian
  38.  
  39. ---------------------------------------------------------------
  40. Brian Arnold                                  arnold@lumina.com
  41. Director of Software Development
  42. Lumina Decision Systems, Inc.            http://www.lumina.com/
  43.  
  44.